﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CH.Easy.DbProvider.Interface;
using CH.Easy.DbProvider.Common;
using System.Data.Common;
using System.Reflection;
using System.Data;
using CH.Easy.DbProvider.Entity;
using System.Linq.Expressions;

namespace CH.Easy.DbProvider.Core
{



    public class DbContext : IDbContext
    {

        protected virtual DbProviderType DbProviderType
        {
            get
            {
                return ConfigHelper.GetDbProviderType();
            }
        }

        public IDbTable<T> GetTable<T>()
        {
            return new DbTable<T>(this.DbProviderType);
        }
        public TSQLEngine TSQLEngine { get { return new TSQLEngine(this.DbProviderType); } }






    }
}
